<template>
  <div class="app">
    <el-container>
      <el-header>
        <el-row justify="space-between" align="middle">
          <el-col :span="4"
            ><div class="head_title" @click="$router.push('/')">
              者也专栏
            </div></el-col
          >
          <el-col :span="4">
            <div class="head_btn">
              <div>登录</div>
              <div>注册</div>
            </div>
          </el-col>
        </el-row>
      </el-header>
      <el-main>
        <router-view />
      </el-main>
      <el-footer> </el-footer>
    </el-container>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
import { useStore } from "vuex";
import { ref, reactive, toRefs } from "vue";

// 引入路由
const router = useRouter();
// 引入仓库
const store = useStore();
const data = reactive({});
</script>

<style lang="scss" scoped>
.head_title {
  font-size: 25px;
}
.head_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  div {
    width: 58px;
    height: 38px;
    border: 1px solid #fff;
    border-radius: 5px;
    line-height: 38px;
  }
}
</style>
